package com.lxh.test2maven.entity;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data//设置set，get方法
@AllArgsConstructor//全参数构造方法
@NoArgsConstructor//无参构造方法
@ToString//toString方法
public class Emp {
    private int eno;
    private String ename;
    private String esex;
    private double salary;
    private String pwd;
    private int dno;
    private Dept dept;

    public Emp(String ename, String esex, double salary, String pwd, int dno) {
        this.ename = ename;
        this.esex = esex;
        this.salary = salary;
        this.pwd = pwd;
        this.dno = dno;
    }
}
